$(document).ready(function () {

    //页脚点击
    $(".tab-bar-wrap .item").click(function () {
        var url = $(this).attr("url");

        //商城不开放
        /*if (url == "/index/shop/index") {
            layer.msg("商城暂未开放");
            return false;
        }*/
        //不是达人开放
        if (url == "/index/share/index") {
            let level = $(this).attr("data-level");
            if (level == 0) {
                layer.msg("升级后开放此功能！");
                return false;
            }
        }


        console.log(url);
        window.location = url;
    });

});
